<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // arguments 已废弃不建议使用
      function fn10(...test) {
        // ...test 获取不定数量的入参
        console.log('test: ', test)

        return Array.prototype.slice.call(arguments)
      }
      console.log(fn10(1, 2, 3, 4, 5))
    </script>
  </body>
</html>
